﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="Our.Umbraco.uDbCompare.index" 
        MasterPageFile="~/umbraco/masterpages/umbracoPage.Master" Title="DB Compare" %>

<%@ Register TagPrefix="cc1" Namespace="umbraco.uicontrols" Assembly="controls" %>
<%@ Register TagPrefix="cc1" Namespace="umbraco.controls" Assembly="umbraco" %>

<asp:Content ID="cphHead" ContentPlaceHolderID="head" runat="server">

</asp:Content>

<asp:Content ID="cphBody" ContentPlaceHolderID="body" runat="server">


<cc1:TabView ID="TabViewDetails" runat="server" Width="552px" Height="692px" />

    <asp:Panel ID="MainPanel" runat="server">
        <br />
        <b>Server:</b> <asp:Label ID="ServerLabel" runat="server"></asp:Label>
        <br />
        Compare Options:
        <asp:DropDownList ID="CompareOptionsDropDownList" runat="server">
        </asp:DropDownList>

        Compare Level:
        <asp:DropDownList ID="CompareLevelDropDownList" runat="server">
        </asp:DropDownList>

        <br />
        <asp:Button ID="CompareButton" runat="server" Text="Compare" OnClick="CompareButton_Click" />
        
        
        <asp:Panel ID="ResultsPanel" runat="server" Visible="false">
        <br />
        <br />
        <h4>Member Types - TODO</h4>
        <br />
        
        <h4>Document Types - Templates</h4>
        <b>Name:</b> alias check <br />
        <b>NameProperties:</b> alias & parent alias check<br />
        <b>NamePropertiesChildren:</b> alias, icon, thumbnail, description, parent alias, & template check<br />
        <br />
        <asp:GridView ID="DocTypeTemplateGridView" runat="server" AutoGenerateColumns="false">
        </asp:GridView>

        <h4>Document Types - Structure</h4>
        <b>Name:</b> alias check <br />
        <b>NameProperties:</b> alias & parent alias check<br />
        <b>NamePropertiesChildren:</b> alias, icon, thumbnail, description, parent alias, & structure check<br />
        <br />
        <asp:GridView ID="DocTypeStructureGridView" runat="server" AutoGenerateColumns="false">
        </asp:GridView>

        <h4>Document Types - Property</h4>
        <b>Name:</b> alias check <br />
        <b>NameProperties:</b> alias & parent alias check<br />
        <b>NamePropertiesChildren:</b> alias, icon, thumbnail, description, parent alias, & property check<br />
        <br />
        <asp:GridView ID="DocTypePropertyGridView" runat="server" AutoGenerateColumns="false">
        </asp:GridView>

        <h4>Media Types - Structure</h4>
        <b>Name:</b> alias check <br />
        <b>NameProperties:</b> alias & parent alias check<br />
        <b>NamePropertiesChildren:</b> alias, icon, thumbnail, description, & parent alias check <br />
        <br />
        <asp:GridView ID="MediaTypeStructureGridView" runat="server" AutoGenerateColumns="false">
        </asp:GridView>

        <h4>Media Types - Property</h4>
        <b>Name:</b> alias check <br />
        <b>NameProperties:</b> alias & parent alias check<br />
        <b>NamePropertiesChildren:</b> alias, icon, thumbnail, description, & parent alias check <br />
        <br />
        <asp:GridView ID="MediaTypePropertyGridView" runat="server" AutoGenerateColumns="false">
        </asp:GridView>

        <h4>Data Types</h4>
        <b>Name:</b> text check <br />
        <b>NameProperties:</b> text, dbtype, & controlid check<br />
        <b>NamePropertiesChildren:</b> text, dbtype, controlid, & pre value check <br />
        <br />
        <asp:GridView ID="DataTypeGridView" runat="server" AutoGenerateColumns="false">
        </asp:GridView>

        <h4>Relation Types</h4>
        <b>Name:</b> alias check<br />
        <b>NameProperties:</b> alias, parentObjectType, childObjectType, & dual check<br />
        <b>NamePropertiesChildren:</b> alias, parentObjectType, childObjectType, & dual check<br />
        <br />
        <asp:GridView ID="RelationTypeGridView" runat="server" AutoGenerateColumns="false">
        </asp:GridView>

        <h4>Templates</h4>
        <b>Name:</b> alias check<br />
        <b>NameProperties:</b> alias & parent Alias check<br />
        <b>NamePropertiesChildren:</b> alias, parent Alias, & design check<br />
        <br />
        <asp:GridView ID="TemplateGridView" runat="server" AutoGenerateColumns="false">
        </asp:GridView>

        <h4>Dictionary</h4>
        <b>Name:</b> key check <br />
        <b>NameProperties:</b> key & parent key check<br />
        <b>NamePropertiesChildren:</b> key, parent key, & langauge value check<br />
        <br />
        <asp:GridView ID="DictionaryGridView" runat="server" AutoGenerateColumns="false">
        </asp:GridView>
        
        <h4>Macros</h4>
        <b>Name:</b> macroAlias check <br />
        <b>NameProperties:</b> macroAlias, macroxslt, & macroscripttype check<br />
        <b>NamePropertiesChildren:</b>macroAlias, macroxslt, macroscripttype, & macropropertyalias check <br />
        <br />
        <asp:GridView ID="MacroGridView" runat="server" AutoGenerateColumns="false">
        </asp:GridView>
        
    
        </asp:Panel>

</asp:Panel>
<asp:Panel ID="SettingsPanel" runat="server">
    <br />
    Connection name: <asp:TextBox ID="ConnectionNameTextBox" runat="server"></asp:TextBox>
    <br />
    Connection string: <asp:TextBox ID="ConnectionStringTextBox" runat="server" Width="500px" Text=""></asp:TextBox>
    <br />
    If you're using a username/password in your connection string, its strongly recommended that you use a string.format parameterised connection string and enter the account details below.
    <br />
    Username ({0}): <asp:TextBox ID="UsernameTextBox" runat="server"></asp:TextBox>   <br />
    Password ({1}): <asp:TextBox ID="PasswordTextBox" runat="server" TextMode="Password"></asp:TextBox>   <br />
    <asp:Button ID="CacheButton" runat="server" Text="Cache Details" />

</asp:Panel>
</cc1:TabView>

</asp:Content>